package com.sunny.design.strategy.exam2;

/**
 * @author Sunny
 * @date 2020/1/4 22:25
 */
public class MsgResult {
    private int code;
    private String msg;
    private Object data;

    public MsgResult(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    @Override
    public String toString() {
        return "支付结果：" + "状态：【" + code + "】, 返回信息：'" + msg + ", 结果：" + data;
    }
}
